package cn.thoughtworks.school.programCenter.repositories;

import cn.thoughtworks.school.programCenter.entities.AssignmentQuizMark;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface AssignmentQuizMarkRepository extends JpaRepository<AssignmentQuizMark, Long> {

    Optional<AssignmentQuizMark> findByAssignmentIdAndStudentIdAndOperatorId(Long assignmentId, Long studentId, Long id);

    Optional<AssignmentQuizMark> findByAssignmentIdAndQuizIdAndStudentIdAndOperatorId(Long assignmentId, Long quizId, Long studentId, Long OperatorId);
}
